package inno.specificValue;

import inno.data.DataReaderSingelton;

public class ClosingPrice implements Value{
	
	String stockName;
	DataReaderSingelton db;
	
	public ClosingPrice(String stockName){
		this.stockName = stockName;
		db = DataReaderSingelton.getInstance();
	}
	
	public Double getValue(int param){
		return db.getClosingPrice(stockName, param);
	}

	@Override
	public String getTag() {
		return "CP";
	}

	@Override
	public boolean isConst() {
		// TODO Auto-generated method stub
		return false;
	}

}
